var eamineeId;
$(document).ready(function(){
	eamineeId = window.sessionStorage.getItem("eamineeId");
	if(!eamineeId)
		window.location.href = "Fractionalquery.html";
	
	$.ajax({
		type:'GET',
		cache:false,
		url:rootPath+"/getAchievementByEamineeId",
		async:true,
		data:{
			type:1,
			EamineeId:eamineeId
		},
		success:function(result)
		{
			var cardId = result.extend.Achievements.cardId;//考生信息
			var name = result.extend.Achievements.name;
			var studentId = result.extend.Achievements.studentId;
			var mathe = result.extend.Achievements.mathe;
			var chinese = result.extend.Achievements.chinese;
			var english = result.extend.Achievements.english;
			var comprehensive = result.extend.Achievements.comprehensive;
			var total =result.extend.Achievements.total
			document.getElementById("name").innerHTML = name;
			document.getElementById("cardId").innerHTML = cardId;
			document.getElementById("studentId").innerHTML = studentId;
			document.getElementById("mathe").innerHTML = mathe;
			document.getElementById("chinese").innerHTML = chinese;
			document.getElementById("english").innerHTML = english;
			document.getElementById("comprehensive").innerHTML = comprehensive;
			document.getElementById("total").innerHTML = total;
			
		
		}
	});
});


function logout()
{
	window.sessionStorage.clear();
	window.location.href = "Fractionalquery.html";
}